package terapeuta;

import hasiera_pantaila.EI_Identifikatu;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class EI_Terapeuten_pantaila_1 extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					EI_Terapeuten_pantaila_1 frame = new EI_Terapeuten_pantaila_1();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public EI_Terapeuten_pantaila_1() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 466, 229);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnIdazkriaSortu = new JButton("SAIO OHARRAK ERREGISTRATU");
		btnIdazkriaSortu.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			EI_Saio_oharrak_erregistratu_1_1 saio=new EI_Saio_oharrak_erregistratu_1_1();
			saio.setVisible(true);
			EI_Terapeuten_pantaila_1.this.setVisible(false);}
		});
		btnIdazkriaSortu.setBounds(102, 30, 237, 23);
		contentPane.add(btnIdazkriaSortu);
		
		JButton btnIdazkariaEzabatu = new JButton("NIRE AGENDA KONTSULTATU");
		btnIdazkariaEzabatu.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				EI_Nire_agenda_kontsultatu_1_2 saio=new EI_Nire_agenda_kontsultatu_1_2();
				saio.setVisible(true);
				EI_Terapeuten_pantaila_1.this.setVisible(false);}
		});
		btnIdazkariaEzabatu.setBounds(102, 64, 237, 23);
		contentPane.add(btnIdazkariaEzabatu);
		
		JButton btnIdazkariBaten = new JButton("BEZEROEN DATUAK KONTSULTATU");
		btnIdazkariBaten.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				EI_Bezeroen_datuak_kontsultatu_sartu_NAN_1_3 saio=new EI_Bezeroen_datuak_kontsultatu_sartu_NAN_1_3();
				saio.setVisible(true);
				EI_Terapeuten_pantaila_1.this.setVisible(false);}
		});
		btnIdazkariBaten.setBounds(101, 98, 238, 23);
		contentPane.add(btnIdazkariBaten);
		
		JButton btnAtzera = new JButton("Atzera");
		btnAtzera.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				EI_Identifikatu bat=new EI_Identifikatu();
				bat.setVisible(true);
				EI_Terapeuten_pantaila_1.this.setVisible(false);}
			});
		
		btnAtzera.setBounds(170, 144, 89, 23);
		contentPane.add(btnAtzera);
	}

	public void bistaratu() {
		this.setVisible(true);
		
	}

}
